// const allRouters=[
//     {
//         path:"attendance",
//         component:()=>import(/*webpackChunkName:'attendance'*/"../pages/Home/Attendance"),
//         name:"attendance",
//         meta:{//路由元信息 临时存储的仓库 一般是为了后续读取它的结果
//               //对应菜单的名字
//             //   可以存图标  类名 
//             name:"考勤管理"
//         }
//     }
// ]
const allRouters = [
    {
        path: "welcome",
        component: () =>
            import(/*webpackChunkName:"welcome" */ "../pages/Home/Welcome"),
        name: "welcome",
        meta: {
            //储存一些属性
            fullPath: "/welcome",//完整路径为了后续跳转
            icon: "iconfont icon-guanli",
            name: "管理首页",
        },
    },
    {
        path: "studentManager",
        component: () =>
            import(
          /*webpackChunkName:"studentManager" */ "../pages/Home/StudentManager"
            ),
        name: "studentManager",
        redirect: "/studentManager/product",
        meta: {
            //储存一些属性
            fullPath: "/studentManager",
            icon: "iconfont icon-xuesheng",
            name: "学员管理",
        },
        children: [
            {
                path: "dormitory",
                component: () =>
                    import(
              /*webpackChunkName:"dormitory" */ "../pages/Home/StudentManager/StudentDormitory"
                    ),
                name: "dormitory",
                meta: {
                    //储存一些属性
                    fullPath: "/studentManager/dormitory",
                    icon: "iconfont icon-sushe",
                    name: "学员宿舍",
                },
            },
            {
                path: "product",
                component: () =>
                    import(
              /*webpackChunkName:"product" */ "../pages/Home/StudentManager/StudentProduct"
                    ),
                name: "product",
                meta: {
                    //储存一些属性
                    fullPath: "/studentManager/product",
                    icon: "iconfont icon-xiangmu00",
                    name: "学员项目管理",
                },
            },
            {
                path: "profill",
                component: () =>
                    import(
              /*webpackChunkName:"profill" */ "../pages/Home/StudentManager/StudentProfill"
                    ),
                name: "profill",
                meta: {
                    //储存一些属性
                    fullPath: "/studentManager/profill",
                    icon: "iconfont icon-wuliudingdan",
                    name: "学员资料"
                },
            },
        ],
    },
    {
        path: "users",
        component: () =>
            import(/*webpackChunkName:"users" */ "../pages/Home/Users"),
        name: "users",
        meta: {
            //储存一些属性
            fullPath: "/users",
            icon: "iconfont icon-yonghuziliao",
            name: "用户管理",
        },
    },
    {
        path: "attendance",
        component: () =>
            import(/*webpackChunkName:"attendance" */ "../pages/Home/Attendance"),
        name: "attendance",
        meta: {
            //储存一些属性
            fullPath: "/attendance",
            icon: "iconfont icon-zhiwen",
            name: "考勤管理",
        },
    },
    {
        path: "statistics",
        component: () =>
            import(/*webpackChunkName:"statistics" */ "../pages/Home/Statistics"),
        name: "statistics",
        meta: {
            //储存一些属性
            fullPath: "/statistics",
            icon: "iconfont icon-shuju",
            name: "数据统计",
        },
    },
    {
        path: "mine",
        component: () => import(/*webpackChunkName:"mine" */ "../pages/Home/Mine"),
        name: "mine",
        meta: {
            //储存一些属性
            fullPath: "/mine",
            icon: "iconfont icon-wode",
            name: "我的中心",
        },
    }, 
    {
        path: "vipmanager",
        component: () => import(/*webpackChunkName:"vipmanager" */ "../pages/Home/VipManager"),
        name: "vipmanager",
        redirect:"/vipmanager/charge",
        meta: {
            //储存一些属性
            fullPath: "/vipmanager",
            icon: "iconfont icon-vip",
            name: "vip管理",
            
        },
        children:[
            {
                path: "charge",
                component: () => import(/*webpackChunkName:"charge" */ "../pages/Home/VipManager/Charge"),
                name: "charge",
                meta: {
                    //储存一些属性
                    fullPath: "/vipmanager/charge",
                    icon: "iconfont icon-VIPchongzhi-",
                    name: "vip充值",
                },
            },
            {
                path: "order",
                component: () => import(/*webpackChunkName:"order" */ "../pages/Home/VipManager/Order"),
                name: "order",
                meta: {
                    //储存一些属性
                    fullPath: "/vipmanager/order",
                    icon: "iconfont icon-kaoqinchuqin",
                    name: "订单管理",
                },
            }
        ]
    }, 
   
];


export default allRouters;